<?php if(!empty($latestPost)): ?>				      
<?php $permalink = '';$arrUri = array();$i = 0;$indicator = '';$shareLink = ''; ?>
<?php foreach($latestPost as $post): ?>
<?php $i= $i+1; ?>
<?php $post->post_title = strip_tags($post->post_title); $permalink = permalink(array('text' => $post->post_title, 'id' => $post->id));$shareLink = urlencode($permalink); ?>
<?php $arrUri[] = $permalink;?>    
	<div class="mitem shadow page_content">
		  	<a href="<?php echo $permalink; ?>">
				<img style="height: 220px; width: 220px" src="<?php echo 'http://toptattoos.net/uploads/'.$post->post_image;//echo getImage($post->post_image) ?>" />
			  </a>
			<div style="overflow: hidden; padding: 8px; position: relative; height: 40px; line-height: 18px;">
				<div style="float: left; width: 50px" class="author-link">
					<a href="http://taymay.vn/minhthaong96"><span style=""><img class="profile-img" src="http://taymay.vn/uploads/avatar/59b1be1f6d7f547c81bea790119f2887/minhthaong96_5044_60.jpg" width="40" /></span></a>
				</div>
				<div style="float: left; width: 150px">
					<div><a href="http://taymay.vn/minhthaong96">Nguyễn Minh Thảo</a></div>
					<div style="font-size: 11px; color: #76797c;">1 ngày trước</div>
				</div>
			</div>
		</div>
<?php 	$post_end = $post->id; ?>      
<?php endforeach; ?> 
<?php endif; ?> 			